package com.lingjtx.auth.service;

import com.lingjtx.auth.entity.UnificationRole;
import com.lingjtx.auth.po.RolePermsPo;
import com.lingjtx.auth.po.UserDeptPo;

import java.util.List;
import java.util.Map;

public interface RolePermsService {

    List<UnificationRole> rolelist();

    List<UnificationRole> rolePages();

    boolean createRole(UnificationRole model);

    boolean updateRole(UnificationRole model);

    boolean deleteRole(List<Long> roleIds);

    // 查询权限组树列表和该角色选中的权限标识符集合
    Map<String, Object> permsGroupTreeAndPermsListByRoleId(Long roleId);

    // 为角色分配按钮权限
    boolean updateRolePerms(RolePermsPo model);

    // 自定义数据权限（勾选部门）
    boolean updateUserDept(UserDeptPo model);
}
